#ifndef SIGNALANALYSIS_H
#define SIGNALANALYSIS_H

#include <QWidget>
#include <QMessageBox>
#include "PackageData.h"
#include "MyDatabase.h"
#include "CommandSendorReceive.h"

struct Json_TableRefresh{
    QString tablename;
    int function_code;
    QString request_id;
};

struct Json_LssueJudgment
{
    int code;
    QString info;
    int function_code;
    QString request_id;
};

class SignalAnalysis: public QWidget
{
    Q_OBJECT
public:
    explicit SignalAnalysis(QWidget *parent = nullptr);

public slots:
    /**
     * @brief  结合mq通信返回的结果做出相应动作
     * @param  obj mq处理数据后发送来的QJsonObject对象
     */
     void handleSignal(const QJsonObject &obj);
};

#endif // SIGNALANALYSIS_H
